<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>目标项目详细信息</title>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script>
<script type="text/javascript" src="${res}/js/validate/irisvalidator.js"></script>
<script type="text/javascript" src="${res}/js/autodisckey/autodisckey.js"></script>

<style type="text/css">
	.input_width { width:130px }
	.select_width { width:143px }
	.table_td td {border:0}
	.long_input{ width:642px }
    .selectWidth4{width:646px;}
</style>
<script type="text/javascript">
var type = "${param.type}";
var parentTable = parent.$("#"+"${param.parentTab}");	//父页面的表格
var selectRadio = $();									//父页面选中的单选框
var selectTr = $();										//父页面选中的行

if(type=="edit") {
	selectRadio = parentTable.find(":radio:checked");
	selectTr = selectRadio.parents("tr");
}

$(function(){
	$("#fragment-tab1 :text,#fragment-tab1 [type='date']").addClass("input_width");
	$("#fragment-tab1 select").addClass("select_width");
	
	var submitpsn=selectTr.find("[name$='submit_psn']");//标示是否是申报人
	
	if(type=="edit"){
		
		$("input:not(:radio:button),textarea,span").each(function(){

			var id=$(this).attr("name");
			if(id==null || id=="")
				return true;
			
			var parentObj=selectTr.find("[name$='/"+id+"']");
			var value="";
			if(parentObj.is("span"))
				value=parentObj.text();
			else
				value=parentObj.val();
				$(this).html(value);
		});
		
		$(":radio").each(function(){//初始化radio框
			var name=$(this).attr("name");
		
			
			var value=$("[name='"+name+"_value']").val();
			if($(this).val()==value)
				$(this).attr("checked",true);
			
		});
		
		changeCardType();
		
		//if(submitpsn.length>0 && submitpsn.val()=="1"){//如果是申报人
			$("input,select,textarea").each(function(){
				if(!$(this).attr("class")||$(this).attr("class").indexOf("notdisabled")==-1)
					$(this).attr("disabled","true");
			});
			$("a,img").removeAttr("onclick");
			$(".color_red").css("display","none");
			$("img").css("display","none");
			if(parent.thickbox_title)
				parent.$("#TB_ajaxWindowTitle").html(parent.thickbox_title);
			else
			parent.$("#TB_ajaxWindowTitle").html("目标项目情况 ");
		//}
		
	}
});

function loadAjaxSelect(selectId,url,params,varParm){
	$.ajax( {
		url : url,
		type : 'post',
		dataType:'json',
		data : params,
		success : function(data) {
			
			for(var i=0;i<data.length;i++){
				var value=data[i].id;
				var text=data[i].name;		
				$("#"+selectId).append("<option value='"+value+"'>"+text+"</option>");
				

			}
			if(type=="edit"){//如果是修改，才需要初始化select框的值
				var selectValue=$("[name='"+selectId+"_value']").val();
				$("#"+selectId+" option").each(function(i,obj){
					if($(obj).val()==selectValue){
						setTimeout(function() {
							$(obj).attr("selected",true);
						}, 1);
					}
				});
			}
			
			
		}
	});
	}

function setDegree(){
	
	var degreeText=$("#degree").children("option").filter(":selected").text();

	if(degreeText=="博士"){
		$("#degree_country_required").show();
		$("#degree_year_required").show();
		var itemClass=$("#degree_country").attr("class");
		if(itemClass.indexOf("required")==-1)
			$("#degree_country").attr("class",$("#degree_country").attr("class")+" required");
		
		itemClass=$("#degree_year").attr("class");
		if(itemClass.indexOf("required")==-1)
			$("#degree_year").attr("class",$("#degree_year").attr("class")+" required");
	}else{//关闭最高学位验证
		$("#degree_country_required").hide();
		$("#degree_year_required").hide();
		$("#degree_country").attr("class",$("#degree_country").attr("class").replace("required",""));
		$("#degree_year").attr("class",$("#degree_year").attr("class").replace("required",""));
	}
}

function changeCardType(){
	var cardTypeObj = $("[name='card_type_value']");
	var cardCodeObj = $("[name='card_code']");
	
	if(cardTypeObj.val()=="1"){
		cardCodeObj.addClass("idCard");
		cardCodeObj.attr("label","身份证");
	} else {
		cardCodeObj.removeClass("idCard");
		cardCodeObj.attr("label","证件号码");
	}
}

</script>

</head>
<body style="overflow-x:hidden;overflow-y:auto;">

	<div id="tabnav">  
		<ul>
			<li class="down" id="tab1" onclick="changeTab(this.id)">
					<a href="###"><span>目标项目情况</span></a>
			</li>
		</ul>
	</div>
	
	<div class="table01 t_css" id="fragment-tab1">
		 <div class="t_bar">
	  <span class="color_red">*</span>目标项目情况
    </div>
		<table class="t_css"  border="0" cellpadding="0" label="基本情况" cellspacing="1" style="width:100%">
		<col style="width:20%"/>
		<col style="width:30%"/>
		<col style="width:20%"/>
		<col style="width:30%"/>
		
		
		<tr class="li_1">
			</td>
			<td align="right">项目名称：</td>
			<td>
				<span name="project_name"></span>
			</td>
			</td>
			<td align="right">研发周期：</td>
			<td>
				<span name="research_period"></span>
			</td>
	  </tr>
	
		<tr class="li_2">
			</td>
			<td align="right">研发目标：</td>
			<td>
				<span name="research_aim"></span>
			</td>
			</td>
			<td align="right">产业目标：</td>
			<td>
				<span name="industry_aim"></span>
			</td>
	  </tr>
	</table>
	
	
	
	<div class="t_bar">
	<span class="color_red">*</span>技术水平
  </div>
	<table class="t_css" style="width:100%" border="0" cellpadding="0" label="技术水平" cellspacing="1">
	  <col style="width:20%"/>
		<col style="width:30%"/>
		<col style="width:20%"/>
		<col style="width:30%"/>
	<tr class="li_1">
			</td>
			<td align="right">国内领先（项）：</td>
			<td>
				<span name="lead_inland"></span>
			</td>
			</td>
			<td align="right">国际领先（项）：</td>
			<td>
				<span name="lead_internation"></span>
			</td>
	  </tr>
	
	<tr class="li_2">
			</td>
			<td align="right">国际先进（项）：</td>
			<td>
				<span name="advanced_internation"></span>
			</td>
			</td>
			<td align="right" nowrap="nowrap">突破核心关键共性技术（个）：</td>
			<td>
				<span name="key_technology"></span>
			</td>
	  </tr>
	</table>
	
	
	
	
	
	<div class="t_bar">
	<span class="color_red">*</span>成果表达形式
  </div>
	<table class="t_css" style="width:100%" border="0" cellpadding="0" label="成果表达形式" cellspacing="1">
	  <col style="width:20%"/>
		<col style="width:30%"/>
		<col style="width:20%"/>
		<col style="width:30%"/>
	<tr class="li_1">
			</td>
			<td align="right">新产品（个）：</td>
			<td>
				<span  name="new_product"></span>
			</td>
			</td>
			<td align="right">新工艺（条）：</td>
			<td>
				<span name="new_craft"></span>
			</td>
	  </tr>
	<tr class="li_2">
			</td>
			<td align="right">新装备（含中试生产线）：</td>
			<td colspan="3">
				<span  name="new_equipment"></span>
			</td>
			</td>
	  </tr>
		<tr class="li_1">	
			<td align="right">研发内容：</td>
			<td colspan="3">
				<span name="research_content"></span>
			</td>
	  </tr>
	  
	  <tr class="li_2">
			</td>
			<td align="right">任务分工（限300字）：</td>
			<td colspan="3">
				
				<span name="task_devided_hidden"></span>
				
			</td> 
	  </tr>
	</table>
	
	
	
	
	
	<div class="t_bar">
	<span class="color_red">*</span>知识产权
  </div>
	<table class="t_css" style="width:100%" border="0" cellpadding="0" label="知识产权" cellspacing="1">
	  <col style="width:20%"/>
		<col style="width:30%"/>
		<col style="width:20%"/>
		<col style="width:30%"/>
	<tr class="li_1">
			</td>
			<td align="right">发明专利（项）：</td>
			<td>
				<span name="invention_patent"></span>
			</td>
			</td>
			<td align="right">实用新型（项）：</td>
			<td>
				<span name="new_type"></span>
			</td>
	  </tr>
	
	<tr class="li_2">
			</td>
			<td align="right">技术标准（个）：</td>
			<td>
				<span   name="technology_standard"></span>
			</td>
			</td>
			<td align="right">自主品牌（个）：</td>
			<td>
				<span name="proprietary_brand" ></span>
			</td>
	  </tr>
	</table>
	
	
	
	<div class="t_bar">
	<span class="color_red">*</span>预期经济效益
  </div>
	<table class="t_css" style="width:100%" border="0" cellpadding="0" label="预期经济效益" cellspacing="1">
	  <col style="width:20%"/>
		<col style="width:30%"/>
		<col style="width:20%"/>
		<col style="width:30%"/>
	<tr class="li_1">
			</td>
			<td align="right">主营业务收入（亿元）：</td>
			<td>
				<span name="income"></span>
			</td>
			</td>
			<td align="right">利税（亿元）：</td>
			<td>
				<span name="tax"></span>
			</td>
	  </tr>
	</table>
	</div>
	
	
	<!-- 
		<div class="tab_box" id="fragment-tab4" style="display: none">
		</div>
	 -->
	<table width="100%" align="center">
		<tr>
			<td>
				&nbsp;<input type="button" id="cancel" class="button_01 notdisabled" value="关闭" onclick="parent.tb_remove();">
			</td>
		</tr>
	</table>
	<br />
	<script type="text/javascript">
	  $(document).ready(function(){
		  	$("#personInfo").each(function(){
		  		$(this).find("tr:even").addClass("li_1");
		  		$(this).find("tr:odd").addClass("li_2");
		  	});
		  });
	</script>
</body>
</html>